<!DOCTYPE html>
<html lang="en">
<head>
<title>Receive File</title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
<link rel="stylesheet" href="css/layout.css" type="text/css" media="all">
<link rel="stylesheet" href="css/style.css" type="text/css" media="all">
<script type="text/javascript" src="js/jquery-1.6.js" ></script>
<script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/cufon-replace.js"></script>
<script type="text/javascript" src="js/Swis721_Cn_BT_400.font.js"></script>
<script type="text/javascript" src="js/Swis721_Cn_BT_700.font.js"></script>
<script type="text/javascript" src="js/tabs.js"></script>
<!--[if lt IE 9]>
  	<script type="text/javascript" src="js/html5.js"></script>
	<style type="text/css">
		.bg{ behavior: url(js/PIE.htc); }
	</style>
<![endif]-->
<!--[if lt IE 7]>
		<div style=' clear: both; text-align:center; position: relative;'>
			<a href="http://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode"><img src="http://www.theie6countdown.com/images/upgrade.jpg" border="0"  alt="" /></a>
		</div>
<![endif]-->
</head>
<body id="page5">
	<div class="body1">
	<div class="body2">
	<div class="body5">
		<div class="main">
<!-- header -->
			<?php include("ssaheader.html"); ?>
<!-- header end-->
		</div>
	</div>
	</div>
	</div>
	<div class="body3">
		<div class="main">
<!-- content -->
			<article id="content">
				<div class="wrapper">
					<section class="col1">
						<h2 class="under">Collect History</h2>
						<form id="ContactForm" action="dtncpdcontrol.php" method="post">
						<div>
							<div  class="wrapper">
								<span>Destination EID:</span>
								<input type="input"  class="input" name="desteid" id="dtncpdpath" value="/var/tmp" />(default path to store file)
							</div>
							
							<div id="cpdiv"  style="display: none;" class="wrapper">
								<span>DTN CPD INFO:</span>
								<textarea id="dtnhttpcpd" readonly="readonly" name="textarea" rows="1" cols="1">
								</textarea>
							</div>
							
							<a href="#" id="dtncpdbtn">dtncpd</a>
						</div>
					</form>
					</section>
					
				</div>

			</article>
		</div>
	</div>
	
<!-- content end -->
<!-- footer -->
			<?php include("footer.php"); ?>
<!-- footer end -->
<script type="text/javascript"> Cufon.now(); </script>
<script>
	$(document).ready(function() {
		tabs.init();
		$("#dtncpdbtn").click(function(){
			$("#dtncpdbtn").empty().append('<img src="images/ajax-loader.gif" alt="Loading..." id="loading" />');
  			$.post( "dtncpdcontrol.php", { filepath: $("#dtncpdpath").attr('value')},
		      function( data ) {
		      		$("#cpdiv").show();
		      		$("#dtnhttpcpd").text(data);
		      		$("#dtncpdbtn").empty();
		      }
		    );
  		});
	})
</script>
</body>
</html>